//
//  NetworkManager.h
//  MessangerSkeleton
//
//  Created by User-23 on 4/17/14.
//  Copyright (c) 2014 IOTrainingCamp. All rights reserved.
//

#import "CCNode.h"
#import "cocos2d.h"
#import "Configuration.h"

#import <GameKit/GameKit.h>
#import "MultipeerConnectivity/MultipeerConnectivity.h"


@interface NetworkManager : CCNode <GKPeerPickerControllerDelegate, GKSessionDelegate>
{
//    NSTimer *gameLoopTimer;
    NSString *gkPeerID;
    GameState gameState;
//    CCLabelTTF *announcementText;
    
    
    //#ifdef kIsOS7OrLater
    //
    //#else
    GKSession *gkSession;
    //#endif
}

//@property (strong, nonatomic) NSTimer *gameLoopTimer;
@property (strong, nonatomic) NSString *gkPeerID;

//#ifdef kIsOS7OrLater
//
//#else
@property (strong, nonatomic) GKSession *gkSession;
//#endif

+ (id)sharedInstance;

- (void)startLookingForOponent;
- (void)sendEnemyInformation:(EnemyInfo)enemyInfo;
- (void)sendToOpponentLevel:(int)level
           andCharacterType:(MessengerSpriteType)gameType;
- (void)sendThatThePlayerIsReadyToPlay;

@end
